home *** CD-ROM | disk | FTP | other *** search
- Path: news.inc.net!news
- From: Will Flor <willf@rrgroup.com>
- Newsgroups: comp.lang.c
- Subject: Re: Invoke a outside utility from c program in MS-Window environments
- Date: 20 Mar 1996 22:01:42 GMT
- Organization: R R Systems Group Inc.
- Message-ID: <4ipv86$9jr@news.inc.net>
- References: <4inf73$lh@crucis.usc.edu> <4iprk5$ban@B1FF.mindspring.com>
- NNTP-Posting-Host: will.rrgroup.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.2N (Windows; I; 32bit)
-
- >haiz@crucis.usc.edu (Hai Zhang) wrote:
- >
- >>Hi,
- >
- >>I am new to program in MS-Window and have following question:
- >
- >>I try to write a c application in MS-Windows environment. In one
- >>procedure I want user input a file name and compress the corresponding
- >>file. I want to use pkzip to do the real job. My question is whether
- >>it is possible to invoke a outside utility such as pkzip in MS-Windows.
- >>In unix I could use system() function or even execl or execv().
- >
- >>I do not want to buy a separate library package from pkware, since I
- >>will only use small part of the compressing utility.
- >
- >
- >>Thanks
- >
- >>Bing Zhang
- >>Dept. of Mechanical Engineering
- >>University of Southern California
- >
-
- Sure, it's possible. WinExec() is the function call, and you can get more
- information on it from (*gasp*) the documentation with your development system
- or a newsgroup such as comp.os.ms-windows.programmer.misc. There are plenty of
- people there who will be glad to help you, I'm sure.
-
- -Will Flor willf@rrgroup.com
- The R R Systems Group, Inc. http://www.rrgroup.com/
-
-
-